import { FC, ReactElement } from 'react'
import React from 'react'

import style from './index.scss'

interface IProps {
  text: string
}

const MoreLoading: FC<IProps> = ({ text }): ReactElement => {
  return <div className={`${style['more-loading']} ${text === 'loading' ? style['loading'] : ''}`}>{text}</div>
}

export default MoreLoading
